const url = require('url')

console.log(url);

const scr = 'https://blog.csdn.net/m0_55557411/article/details/124255896?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522166236552516782414962295%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=166236552516782414962295&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduend~default-2-124255896-null-null.142^v46^control&utm_term=js%20node&spm=1018.2226.3001.4187'
console.log(url.parse(urlStr))